<?php /* Smarty version Smarty-3.1.18, created on 2017-06-21 15:24:38
         compiled from "/data/www/mystery/protected/modules/webadmin/views/progress/project_quetion.tpl" */ ?>
<?php /*%%SmartyHeaderCode:56930808454c4c5ea8f1458-75839086%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'cdb77c5fc81a038d49fc67702746bae559bb782b' => 
    array (
      0 => '/data/www/mystery/protected/modules/webadmin/views/progress/project_quetion.tpl',
      1 => 1494904923,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '56930808454c4c5ea8f1458-75839086',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_54c4c5ea96d816_96557390',
  'variables' => 
  array (
    'projectInfo' => 0,
    'params' => 0,
    'questionInfo' => 0,
    'val' => 0,
    'page' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_54c4c5ea96d816_96557390')) {function content_54c4c5ea96d816_96557390($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/data/www/mystery/protected/extensions/Smarty/plugins/modifier.date_format.php';
if (!is_callable('smarty_function_math')) include '/data/www/mystery/protected/extensions/Smarty/plugins/function.math.php';
?><?php echo $_smarty_tpl->getSubTemplate ("../common/header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<table width="100%" border="0" cellspacing="0">
 <tr>
    <td width="13%" valign="top">
            <?php echo $_smarty_tpl->getSubTemplate ("../common/left.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

    </td>
    <td width="87%" valign="top">
					
        <table width="100%" border="0" cellspacing="0">
          <tr>
                <td>
                <form name="myform" action="/webadmin/progress/projectquestion" method="get" id="myform">
                    <div class="explain-col">
                        <b><a href="/webadmin/progress/schedule?project_id=<?php echo $_smarty_tpl->tpl_vars['projectInfo']->value['project_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['projectInfo']->value['project_name'];?>
</a></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        问卷名称：<input type="text" value="<?php echo $_smarty_tpl->tpl_vars['params']->value['question_name'];?>
" class="input-text" name="question_name">
                    问卷编号：<input type="text" name="question_identifier" id="start_uploadtime" value="<?php echo $_smarty_tpl->tpl_vars['params']->value['question_identifier'];?>
" size="21" class="date input-text">&nbsp;
                                    <input type="hidden" id="project_id" name="project_id" value="<?php echo $_smarty_tpl->tpl_vars['params']->value['project_id'];?>
" />
                                    <input type="submit" value="搜索" class="button" name="dosubmit"> 
                    </div>
                    <div class="content-menu ib-a blue"> <a href="/webadmin/progress/schedule" class="on"><em>项目进度查询</em></a> </div>
                </form> 

                        <div class="pad_10">
                          <div class="table-list">
                          <table width="100%">
                                <thead>
                                  <tr>
                                    <th width="10%">问卷编号</th>
                                    <th width="25%">问卷名称</th>
                                    <th width="15%">创建时间</th>
                                    <th width="10%">网点数量</th>
                                    <th width="10%">已导入数据网点数量</th>
                                    <th width="10%">问卷进度</th>
                                    <th width="10%">网点进度</th>
                                  </tr>
                                </thead>
                                <tbody>
                                  <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['questionInfo']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['val']->key;
?>
                                  <tr>
                                        <td align="center"><?php echo $_smarty_tpl->tpl_vars['val']->value['identifier'];?>
</td>
                                        <td align="center"><a href="/webadmin/progress/netquestion?question_id=<?php echo $_smarty_tpl->tpl_vars['val']->value['question_id'];?>
" style="color:#b73632;"><?php echo $_smarty_tpl->tpl_vars['val']->value['question_name'];?>
</a></td>
                                        <td align="center"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['val']->value['create_time'],"%Y-%m-%d %H:%M:%S");?>
</td>
                                        <td align="center"><?php echo $_smarty_tpl->tpl_vars['val']->value['network_num'];?>
</td>
                                        <td align="center"><?php echo $_smarty_tpl->tpl_vars['val']->value['complete_num'];?>
</td>
                                        <td align="center"><?php if ($_smarty_tpl->tpl_vars['val']->value['network_num']) {?> <?php echo smarty_function_math(array('equation'=>"x/y*100",'x'=>$_smarty_tpl->tpl_vars['val']->value['tijiao_one_num'],'y'=>$_smarty_tpl->tpl_vars['val']->value['network_num'],'format'=>"%.2f"),$_smarty_tpl);?>
%<?php } else { ?>0%<?php }?></td>
                                        <td align="center"><a href="/webadmin/progress/netquestion?question_id=<?php echo $_smarty_tpl->tpl_vars['val']->value['question_id'];?>
">点击查看</a></td>
                                  </tr>
                                  <?php } ?>
                                </tbody>
                          </table>
                                <div style="float:right;"><?php echo $_smarty_tpl->tpl_vars['page']->value;?>
</div>
                          </div>
                        </div>
                </td>
          </tr>
        </table>
    	</td>
 </tr>
</table>
<script type="text/javascript">
$(document).ready(function($) {
	$('a[name="delete"]').click(function() {
		var id = $(this).attr('rel');
		if (id == ''){
			return false;
		}
		$or = confirm('你确定要删除吗？');
		if($or){
	  		$.ajax({
	 			 type:'post',
	 			 async : true,
				 dataType:"json",
				 data: {'project_id':id},
	 			 url:'/webadmin/project/delete',
	 			 success:function(data){
	 				alert(data.msg);
	 				if(!data.ok){
						return false ;
					}else{
						location.reload();
					}
	 			 }
	 		});
	  	}
	});
});
</script>
<?php echo $_smarty_tpl->getSubTemplate ("../common/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
